﻿using System.IO;
using System.Reflection;
using NUnit.Framework;

namespace HtmlDeploy.Test
{
    [TestFixture]
    public class TemplateFixture
    {
        private string combine;

        [TestFixtureSetUp]
        public void Setup()
        {
            var rootPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var s = new JqueryTemplate(rootPath + @"\data\templates\");

            combine = s.Process();
        }

        [Test]
        public void IncludesAll()
        {
            Assert.That(combine.Contains(@"<h1>Template</h1>"));
            Assert.That(combine.Contains(@"<h2>inner</h2>"));
            Assert.That(combine.Contains("tmplTemplate"));
            Assert.That(combine.Contains("tmplinner-Inner"));
        }
    }
}
